#ifndef _COMMON_H_
#define _COMMON_H_
#define COMM_CH_NUM 2
#define COMM_QUEUE_SIZE 32
typedef enum comm_status_t comm_status_t;
enum comm_status_t{
	COMM_OK,
	COMM_ERR,
	COMM_EMPTY,
	COMM_FULL
}

void comm_init();
comm_status_t comm_config(int ch,int baud,int data,int biary,int stop);
comm_status_t comm_putchar(int ch,char c);
comm_status_t comm_getchar(int ch,char *c);

int comm_is_empty(int ch);
int comm_is_full(int ch);

#endif // _COMMON_H_
